import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/comm/syscommpkt/page',
    method: 'get',
    params: query
  })
}


export function putObj(obj) {
  return request({
    url: '/comm/syscommpkt',
    method: 'put',
    data: obj
  })
}

export function addObj(obj) {
  return request({
    url: '/comm/syscommpkt',
    method: 'post',
    data: obj
  })
}

export function delObj(id) {
  return request({
    url: '/comm/syscommpkt/'+id,
    method: 'delete'
  })
}

export function createTree(obj) {
  return request({
    url: '/comm/syscommpkt/createTree',
    method: 'post',
    data: obj
  })
}

export function copy(obj) {
  return request({
    url: '/comm/syscommpkt/copy',
    method: 'post',
    data: obj
  })
}

export function checkTransCode(obj) {
  return request({
    url: '/comm/syscommpkt/checkTransCode',
    method: 'post',
    data: obj
  })
}
